#include "hal_pwm.h"

struct hal_pwm_if *pwm_if = &g_hdl_pwm_if;

int8_t hal_servo_init(uint16_t ms)
{
    return pwm_if->sg90_pwm_init(ms);
}

int8_t hal_servo_angle_ctrl(uint16_t Angle)
{
    return pwm_if->sg90_pwm_set(Angle);
}

int8_t hal_led_pwm_init(void)
{
    return pwm_if->led_pwm_init(100);
}

int8_t hal_led_pwm_set(uint16_t value)
{
    return pwm_if->led_pwm_set(value);
}
